<?php
class UserVModel extends ViewModel {
	public $viewFields = array (
			'UserExt' => array (
					'element' => 'e_element',
					'value' => 'e_value',
					'platform' => 'e_platform',
					'_type' => 'left',
					'_as' => 'ue' 
			),
			'User' => array (
					'id','username','email','mobile','status','createtime','last_logintime',
					//'_type'=>'left',
					'_as' => 'u',
					'_on' => 'ue.userid=u.id' 
			),
			/*'RoleUser' => array(
					'role_id' => 'role_id',
					'_as' => 'ru',
					'_on' => 'ue.userid=ru.user_id'
			)*/
			/*'UserB2b'=>array(
					'realname','company','sex','tel','mobile','province','city','area','address','login_count','createtime','updatetime',
					'last_logintime','reg_ip','last_ip','avatar','flink','mobile'=>'b2b_mobile',
					'_as'=>'ub',
					'_on'=>'u.id=ub.user_id',
			)*/
	);
}